package service.order;

import java.util.List;

import persistence.order.OrderDao;

import dao.Order;

public class OrderDaoService implements OrderService {

	private OrderDao dao;

	@Override
	public void deleteOrder(Integer id) {
		dao.deleteOrder(id);
	}

	@Override
	public List<Order> getAllOrder() {
		return dao.getAllOrder();
	}

	@Override
	public Order getOrder(Integer id) {
		return dao.getOrder(id);
	}

	@Override
	public void insertOrder(Order ord) {
		dao.insertOrder(ord);

	}

	@Override
	public void updateOrder(Order ord) {
		dao.updateOrder(ord);
	}

}
